/*
 * Distances.cpp
 *
 *  Created on: Apr 28, 2010
 *      Author: Sequoyha
 */

#include "Distances.h"

//DEFAULT CONSTRUCTOR
Distances::Distances():winery(0), fromCurrent(0.00){}

//CONSTRUCTOR
Distances::Distances(int wNum, float distance):winery(wNum), fromCurrent(distance){}

//SETTERS
void Distances::setWinery(int wNum){winery = wNum;}
void Distances::setFromCurrent(float distance){fromCurrent = distance;}

//GETTERS
int Distances::getWinery(){return winery;}
float Distances::getFromCurrent(){return fromCurrent;}

//OPERATOR FOR COMPARISON (SORTING)
bool Distances::operator < (const Distances& obj)const
{
	if(this->fromCurrent < obj.fromCurrent)
		{return true;}
	else{return false;}
}
